package spitfire.ksim.algorithm;

import java.util.ArrayList;


public class FuzzyRule {
	private final ArrayList<Double> xList = new ArrayList<Double>();
	private final ArrayList<Double> yList = new ArrayList<Double>();
	private double rMax;
	private double rMin;
	
	public int size() {
		if (xList.size() != yList.size()) {
			throw new RuntimeException("X,Y length not consistent");
		}
		return xList.size();
	}
	
	public void add(Double x, Double y) {
		xList.add(x);
		yList.add(y);
	}
	
	public void add(double x, double y) {
		xList.add(x);
		yList.add(y);
	}

	public void setrMax(double rMax) {
		this.rMax = rMax;
	}

	public double getrMax() {
		return rMax;
	}

	public void setrMin(double rMin) {
		this.rMin = rMin;
	}

	public double getrMin() {
		return rMin;
	}
	
	public ArrayList<Double> getxList() {
		return xList;
	}

	public ArrayList<Double> getyList() {
		return yList;
	}

}
